<template lang="jade">
h-loader-full(url='loader')
  .box
    m-title(icon='add',name='修改')
    table.single


      mf-row(name='意向地区:')
        select(v-model='detail.address_w')
            option(value='保定') 保定
            option(value='徐水') 徐水
            option(value='焦庄') 焦庄
      mf-row(name='姓名:'): input(type='text',v-model='detail.name')
      mf-row(name='性别:')
        select(v-model='detail.sex')
            option(value='男') 男
            option(value='女') 女
      mf-row(name='政治面貌:')
        select(v-model='detail.zzmm')
            option(value='中国共产党党员') 中国共产党党员
            option(value='共青团员') 共青团员
            option(value='群众') 群众
      mf-row(name='婚姻状况:')
        select(v-model='detail.hyzk')
            option(value='未婚') 未婚
            option(value='已婚') 已婚
            option(value='离异') 离异
      mf-row(name='民族:')
        select(v-model='detail.minzu')
            option(value='汉族') 汉族
            option(value='满族') 满族
            option(value='回族') 回族
      mf-row(name='籍贯:'): input(type='text',v-model='detail.jiguan')
      mf-row(name='户口所在地:'): input(type='text',v-model='detail.address_h')
      mf-row(name='家庭电话:'): input(type='text',v-model='detail.tel')
      mf-row(name='手机号码:'): input(type='text',v-model='detail.phone')
      mf-row(name='身份证号:'): input(type='text',v-model='detail.number')
      mf-row(name='学历:'): input(type='text',v-model='detail.education')
      mf-row(name='毕业时间:'): input(type='text',v-model='detail.overtime')
      mf-row(name='毕业学校:'): input(type='text',v-model='detail.school')
      mf-row(name='专业:'): input(type='text',v-model='detail.major')
      mf-row(name='备注:'): input(type='text',v-model='detail.beizhu')



      mf-row(name='')
        button(@click='change') 确认修改
</template>
----------------------------------------------------------------------------------------
<script>
import { MessageBox } from 'mint-ui'
export default {
  data () {
    return {

      detail:{
        address_w:"",
        name:"",
        sex:"",
        zzmm:"",
        hyzk:"",
        minzu:"",
        jiguan:"",
        address_h:"",
        tel:"",
        phone:"",
        number:"",
        education:"",
        overtime:"",
        school:"",
        major:"",
        beizhu:"",
      },


   }
  },
  mounted () {
    this.$ajax.get('get_changcheng/datail/' + this.$query.get('id'),(res)=>{
      let data = res['data'][0][0];
      this.detail = data;
    });
  },
  methods: {


      change(){
        this.$ajax.put('changcheng/change',this.detail,(res)=>{
          this.$msg.success('修改成功')
        },(res)=>{
          this.$msg.error('修改失败')
        })
      },


    }
  }
</script>
----------------------------------------------------------------------------------------
<style lang="less" scoped>
@import "../../../plugin/style/mixin";

</style>